package com.ylp.sys.auth.entity;

import cn.dev33.satoken.stp.SaTokenInfo;
import com.ylp.sys.domain.entity.SysUser;
import io.swagger.v3.oas.annotations.media.Schema;

import java.util.ArrayList;
import java.util.List;

@Schema(name = "LoginVo", description = "登录返回数据")
public class LoginVo {
    @Schema(description = "用户id")
    private Long id;
    @Schema(description = "token相关参数")
    private SaTokenInfo saTokenInfo;
    @Schema(description = "用户信息")
    private SysUser userInfo;
    @Schema(description = "角色信息")
    private List<String> roleLabelList = new ArrayList<>();
    @Schema(description = "权限")
    private List<String> permissionList = new ArrayList<>();

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public SaTokenInfo getSaTokenInfo() {
        return saTokenInfo;
    }

    public void setSaTokenInfo(SaTokenInfo saTokenInfo) {
        this.saTokenInfo = saTokenInfo;
    }

    public SysUser getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(SysUser userInfo) {
        this.userInfo = userInfo;
    }

    public List<String> getRoleLabelList() {
        return roleLabelList;
    }

    public void setRoleLabelList(List<String> roleLabelList) {
        this.roleLabelList = roleLabelList;
    }

    public List<String> getPermissionList() {
        return permissionList;
    }

    public void setPermissionList(List<String> permissionList) {
        this.permissionList = permissionList;
    }
}
